<?php
    class Application_Model_Msg extends App_Model
    {
        public function __construct($id = NULL) {
            parent::__construct(new Application_Model_DbTable_Msg, $id);
        }

        public function getContent( $dir = 'desc', $sort_by = 'user_name') {
          //  return $this->_dbTable->fetchAll('user_name', $sort_by.' '. $dir);
           // return $this->_dbTable->fetchAll('dt', 'user_name'.' '. 'asc');
            $select = $this->_dbTable->select()
        ->order($sort_by.' '. $dir);
           
    return $this->_dbTable->fetchAll($select);
        }
        
   
        }

?>